import { createApp } from 'vue';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import 'virtual:svg-icons-register';
import App from './App-VITE_WDM_THEME.vue';
import './assets/main.scss';
import './assets/wdm-VITE_WDM_THEME.scss';
import './assets/wdm.scss';
import { setupPlugins } from './plugins';
import { setupRouter } from './router';
import { setupStore } from './stores';

dayjs.locale('zh-cn');
const bootstrap = () => {
  const app = createApp(App);

  setupPlugins(app);
  setupStore(app);
  setupRouter(app);

  app.mount('#app');
};

bootstrap();
